java convert integer to string

94

int to string -

int a = 10;
char *intStr = itoa(a);
string str = string(intStr);

java convert integer to string -

int i = 1234;
String str = Integer.toString(i);

integer to stringc -

int someInt = 368;
char str[12];
sprintf(str, "%d", someInt);

Comments

Submit
0 Comments